home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
GameStar 2006 February
/
Gamestar_81_2006-02_dvd.iso
/
Red Shark
/
Common
/
CountrySawmill.script
< prev
next >
Wrap
Text File
|
2001-12-21
|
1KB
|
47 lines
//-------------------------------------------------------------------
//
// This code is copyright 2001 by G5 Software.
// Any unauthorized usage, either in part or in whole of this code
// is strictly prohibited. Violators WILL be prosecuted to the
// maximum extent allowed by law.
//
//-------------------------------------------------------------------
class CCountrySawmillMesh
{
string MeshFile = "Models/B_Country_Sawmill.mesh";
string SkinFile = "Models/B_Country_Sawmill.skin";
}
class CCountrySawmillStateControl extends CUnitLifeControl
{
void CCountrySawmillStateControl()
{
CUnitLifeControl(3500.0);
m_DestroyPause = 20.0;
m_ExplosionId = "EXPLID_BuildingExplosion";
}
}
// Building without ground control (for use in villages)
class CBaseCountrySawmill extends CBuilding, CUnitWithStateControl
{
void CBaseCountrySawmill()
{
InitializeModelAsStatic("CCountrySawmillMesh");
CUnitWithStateControl("CCountrySawmillStateControl");
}
}
// Single game object
class CMountedCountrySawmill extends CBaseCountrySawmill
{
void CMountedCountrySawmill()
{
InitializeGroundControl();
}
}